import {NgModule, ErrorHandler} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {IonicApp, IonicModule, IonicErrorHandler} from 'ionic-angular';
import {MyApp} from './app.component';

import {StatusBar} from '@ionic-native/status-bar';
import {SplashScreen} from '@ionic-native/splash-screen';
import {PublicService} from "../common/public.service";
import {Network} from "@ionic-native/network";
import {DatePicker} from "@ionic-native/date-picker";
import {SetWorkPage} from "../pages/work/set-work";
import {QRScanner} from "@ionic-native/qr-scanner";
import {HttpService} from "../providers/HttpService";
import {HttpModule} from "@angular/http";
import {FileOpener} from "@ionic-native/file-opener";
import {FileTransfer} from "@ionic-native/file-transfer";
import {File} from "@ionic-native/file";
import {NativeAudio} from "@ionic-native/native-audio";
import {Vibration} from "@ionic-native/vibration";

@NgModule({
  declarations: [
    MyApp,
    SetWorkPage
  ],
  imports: [
    BrowserModule,
    HttpModule,
    IonicModule.forRoot(MyApp, {
      mode: 'ios',
      backButtonText: ''
    })
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    SetWorkPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    PublicService,
    Network,
    DatePicker,
    QRScanner,
    HttpService,
    File,
    FileTransfer,
    FileOpener,
    NativeAudio,
    Vibration,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {
}
